export default {
  namespaced:true, // b/方法名
    state: {
      age: 20000,
    },
    mutations: {
      addAge(state, payload) {
        state.age += payload; // todo..
      },
    },
    actions: {
      addAge({commit}, payload) {
        debugger;
        commit('addAge')
        commit('b/addAge',payload)
      },
    },
  };
  

  function localContext(namespace){
    return commit(type){
      store.commit(namespace + type)
    }
  }